<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri= "http://java.sun.com/jsp/jstl/core" prefix= "c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑信托理财产品</title>

<link href="${pageContext.request.contextPath }/admin/login/css/mainstyle.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/admin/login/css/common.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="${pageContext.request.contextPath }/util/datepicker47/WdatePicker.js"></script>

<script type="text/javascript" src="${pageContext.request.contextPath }/admin/login/js/common.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/login/js/product_trust_form.js"></script>

</head>
<body>
  <div class="rrcc" id="RightBox">
    <div class="right" id="li010">
      <div class="right01"><img src="${pageContext.request.contextPath }/admin/login/images/main/04.gif" /> 产品类型管理 &gt; <span>编辑信托理财产品</span></div>
      
      <div class="primary">
        <table>
          <tr>
            <th>编辑信托理财产品</th>
            <th></th>
          </tr>
        </table>
        <br/>
        
        <form action="${pageContext.request.contextPath }/admin/producttrust/trustProductEdit.do?m=edit" 
          method="post" name="trustProductForm" id="trustProductForm">
        <input type="hidden" name="id" value="${trustProductDetail.id }" />
        <input type="hidden" name="productTypeId" value="${productTrustForm.productTypeId }" />
        <table>
          <tr>
            <td width="180px" align="right">产品名称:</td>
            <td>
              <textarea name="productName" id="productName" rows="3" cols="60"
                onfocus="productNameFocus('productNameCol', 'productNameDesc')"
                onblur="productNameBlur(this, 'productNameCol', 'productNameDesc')" 
              >${trustProductDetail.productName }</textarea>
            </td>
            <td><font color="red">*</font></td>
            <td id="productNameCol">
              <span id="productNameDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">发行机构:</td>
            <td>
              <input type="text" name="issuer" id="issuer" 
                value="${trustProductDetail.issuer }"
                onfocus="issuerFocus('issuerCol', 'issuerDesc')"
                onblur="issuerBlur(this, 'issuerCol', 'issuerDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="issuerCol">
              <span id="issuerDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">项目经理:</td>
            <td>
              <input type="text" name="projectManager" id="projectManager" 
                value="${trustProductDetail.projectManager }"
                onfocus="projectManagerFocus('projectManagerCol', 'projectManagerDesc')"
                onblur="projectManagerBlur(this, 'projectManagerCol', 'projectManagerDesc')" />
            </td>
            <td></td>
            <td id="projectManagerCol">
              <span id="projectManagerDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">产品类型:</td>
            <td>
              <input type="text" name="productType" id="productType" 
                value="${trustProductDetail.productType }"
                onfocus="productTypeFocus('productTypeCol', 'productTypeDesc')"
                onblur="productTypeBlur(this, 'productTypeCol', 'productTypeDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="productTypeCol">
              <span id="productTypeDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">产品状态:</td>
            <td>
              <select name="productStatus">
                <option value="0" <c:if test="${trustProductDetail.productStatus eq 0 }">selected</c:if>>未发售</option>
                <option value="1" <c:if test="${trustProductDetail.productStatus eq 1 }">selected</c:if>>正在发售</option>
                <option value="2" <c:if test="${trustProductDetail.productStatus eq 2 }">selected</c:if>>执行</option>
              </select>
            </td>
            <td><font color="red">*</font></td>
            <td></td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">理财币种:</td>
            <td>
              <input type="text" name="currency" id="currency" 
                value="${trustProductDetail.currency }"
                onfocus="currencyFocus('currencyCol', 'currencyDesc')"
                onblur="currencyBlur(this, 'currencyCol', 'currencyDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="currencyCol">
              <span id="currencyDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">投资管理类型:</td>
            <td>
              <input type="text" name="managementType" id="managementType" 
                value="${trustProductDetail.managementType }"
                onfocus="managementTypeFocus('managementTypeCol', 'managementTypeDesc')"
                onblur="managementTypeBlur(this, 'managementTypeCol', 'managementTypeDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="managementTypeCol">
              <span id="managementTypeDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">发行日期:</td>
            <td>
              <input type="text" name="issueDate" id="issueDate" 
                value="${trustProductDetail.issueDate }"
                onfocus="WdatePicker({minDate:'%y-%M-%d', maxDate:'#F{$dp.$D(\'endDate\')}'})"/>
            </td>
            <td></td>
            <td id="issueDateCol">
              <span id="issueDateDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">发行结束日期:</td>
            <td>
              <input type="text" name="endDate" id="endDate" 
                value="${trustProductDetail.endDate }"
                onfocus="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}'})"/>
            </td>
            <td></td>
            <td id="endDateCol">
              <span id="endDateDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">发售对象:</td>
            <td>
              <input type="text" name="placeTarget" id="placeTarget" 
                value="${trustProductDetail.placeTarget }"
                onfocus="placeTargetFocus('placeTargetCol', 'placeTargetDesc')"
                onblur="placeTargetBlur(this, 'placeTargetCol', 'placeTargetDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="placeTargetCol">
              <span id="placeTargetDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">发行规模:</td>
            <td>
              <input type="text" name="issuesSize" id="issuesSize" 
                value="${trustProductDetail.issuesSize }"
                onfocus="issuesSizeFocus('issuesSizeCol', 'issuesSizeDesc')"
                onblur="issuesSizeBlur(this, 'issuesSizeCol', 'issuesSizeDesc')" />万元
            </td>
            <td><font color="red">*</font></td>
            <td id="issuesSizeCol">
              <span id="issuesSizeDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">投资门槛:</td>
            <td>
              <input type="text" name="startAmount" id="startAmount" 
                value="${trustProductDetail.startAmount }"
                onfocus="startAmountFocus('startAmountCol', 'startAmountDesc')"
                onblur="startAmountBlur(this, 'startAmountCol', 'startAmountDesc')" />万元
            </td>
            <td><font color="red">*</font></td>
            <td id="startAmountCol">
              <span id="startAmountDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">产品期限:</td>
            <td>
              <input type="text" name="timeLimit" id="timeLimit" 
                value="${trustProductDetail.timeLimit }"
                onfocus="timeLimitFocus('timeLimitCol', 'timeLimitDesc')"
                onblur="timeLimitBlur(this, 'timeLimitCol', 'timeLimitDesc')" />月
            </td>
            <td><font color="red">*</font></td>
            <td id="timeLimitCol">
              <span id="timeLimitDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">期限类型:</td>
            <td>
              <input type="text" name="timeLimitType" id="timeLimitType" 
                value="${trustProductDetail.timeLimitType }"
                onfocus="timeLimitTypeFocus('timeLimitTypeCol', 'timeLimitTypeDesc')"
                onblur="timeLimitTypeBlur(this, 'timeLimitTypeCol', 'timeLimitTypeDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="timeLimitTypeCol">
              <span id="timeLimitTypeDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">预期收益率:</td>
            <td>
              <input type="text" name="expectedProfit" id="expectedProfit" 
                value="${trustProductDetail.expectedProfit }"
                onfocus="expectedProfitFocus('expectedProfitCol', 'expectedProfitDesc')"
                onblur="expectedProfitBlur(this, 'expectedProfitCol', 'expectedProfitDesc')" />%
            </td>
            <td><font color="red">*</font></td>
            <td id="expectedProfitCol">
              <span id="expectedProfitDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">收益类型:</td>
            <td>
              <input type="text" name="earningsType" id="earningsType" 
                value="${trustProductDetail.earningsType }"
                onfocus="earningsTypeFocus('earningsTypeCol', 'earningsTypeDesc')"
                onblur="earningsTypeBlur(this, 'earningsTypeCol', 'earningsTypeDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="earningsTypeCol">
              <span id="earningsTypeDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">是否保本:</td>
            <td>
              <select name="breakEven">
                <option value="0" <c:if test="${trustProductDetail.breakEven eq 0 }">selected</c:if>>否</option>
                <option value="1" <c:if test="${trustProductDetail.breakEven eq 1 }">selected</c:if>>是</option>
              </select>
            </td>
            <td><font color="red">*</font></td>
            <td></td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">投资方式:</td>
            <td>
              <input type="text" name="investmentStyle" id="investmentStyle" 
                value="${trustProductDetail.investmentStyle }"
                onfocus="investmentStyleFocus('investmentStyleCol', 'investmentStyleDesc')"
                onblur="investmentStyleBlur(this, 'investmentStyleCol', 'investmentStyleDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="investmentStyleCol">
              <span id="investmentStyleDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">资金投向:</td>
            <td>
              <input type="text" name="fundInvestment" id="fundInvestment" 
                value="${trustProductDetail.fundInvestment }"
                onfocus="fundInvestmentFocus('fundInvestmentCol', 'fundInvestmentDesc')"
                onblur="fundInvestmentBlur(this, 'fundInvestmentCol', 'fundInvestmentDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="fundInvestmentCol">
              <span id="fundInvestmentDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">资金托管费率:</td>
            <td>
              <input type="text" name="trustMoney" id="trustMoney" 
                value="${trustProductDetail.trustMoney }"
                onfocus="trustMoneyFocus('trustMoneyCol', 'trustMoneyDesc')"
                onblur="trustMoneyBlur(this, 'trustMoneyCol', 'trustMoneyDesc')" />%
            </td>
            <td><font color="red">*</font></td>
            <td id="trustMoneyCol">
              <span id="trustMoneyDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">销售手续费率:</td>
            <td>
              <input type="text" name="sellFee" id="sellFee" 
                value="${trustProductDetail.sellFee }"
                onfocus="sellFeeFocus('sellFeeCol', 'sellFeeDesc')"
                onblur="sellFeeBlur(this, 'sellFeeCol', 'sellFeeDesc')" />%
            </td>
            <td><font color="red">*</font></td>
            <td id="sellFeeCol">
              <span id="sellFeeDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">成立日期:</td>
            <td>
              <input type="text" name="foundedDate" id="foundedDate" 
                value="${trustProductDetail.foundedDate }"
                onfocus="WdatePicker({minDate:'%y-%M-%d'})"/>
            </td>
            <td></td>
            <td id="foundedDateCol">
              <span id="foundedDateDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">成立规模:</td>
            <td>
              <input type="text" name="foundedSize" id="foundedSize" 
                value="${trustProductDetail.foundedSize }"
                onfocus="foundedSizeFocus('foundedSizeCol', 'foundedSizeDesc')"
                onblur="foundedSizeBlur(this, 'foundedSizeCol', 'foundedSizeDesc')" />万元
            </td>
            <td><font color="red">*</font></td>
            <td id="foundedSizeCol">
              <span id="foundedSizeDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">到期日期:</td>
            <td>
              <input type="text" name="dueDate" id="dueDate" 
                value="${trustProductDetail.dueDate }"
                onfocus="WdatePicker({minDate:'%y-%M-%d'})"/>
            </td>
            <td></td>
            <td id="dueDateCol">
              <span id="dueDateDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">实际年收益率:</td>
            <td>
              <input type="text" name="realProfit" id="realProfit" 
                value="${trustProductDetail.realProfit }"
                onfocus="realProfitFocus('realProfitCol', 'realProfitDesc')"
                onblur="realProfitBlur(this, 'realProfitCol', 'realProfitDesc')" />%
            </td>
            <td><font color="red">*</font></td>
            <td id="realProfitCol">
              <span id="realProfitDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">发售地区:</td>
            <td>
              <input type="text" name="placeArea" id="placeArea" 
                value="${trustProductDetail.placeArea }"
                onfocus="placeAreaFocus('placeAreaCol', 'placeAreaDesc')"
                onblur="placeAreaBlur(this, 'placeAreaCol', 'placeAreaDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="placeAreaCol">
              <span id="placeAreaDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">资金运用情况:</td>
            <td>
              <textarea name="fundsAppliaction" id="fundsAppliaction" rows="10" cols="60"
                onfocus="fundsAppliactionFocus('fundsAppliactionCol', 'fundsAppliactionDesc')"
                onblur="fundsAppliactionBlur(this, 'fundsAppliactionCol', 'fundsAppliactionDesc')" 
              >${trustProductDetail.fundsAppliaction }</textarea>
            </td>
            <td><font color="red"></font></td>
            <td id="fundsAppliactionCol">
              <span id="fundsAppliactionDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">信用增级情况:</td>
            <td>
              <textarea name="creditEnhancement" id="creditEnhancement" rows="10" cols="60"
                onfocus="creditEnhancementFocus('creditEnhancementCol', 'creditEnhancementDesc')"
                onblur="creditEnhancementBlur(this, 'creditEnhancementCol', 'creditEnhancementDesc')" 
              >${trustProductDetail.creditEnhancement }</textarea>
            </td>
            <td><font color="red"></font></td>
            <td id="creditEnhancementCol">
              <span id="creditEnhancementDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">其他相关信息:</td>
            <td>
              <textarea name="otherInformation" id="otherInformation" rows="10" cols="60"
                onfocus="otherInformationFocus('otherInformationCol', 'otherInformationDesc')"
                onblur="otherInformationBlur(this, 'otherInformationCol', 'otherInformationDesc')" 
              >${trustProductDetail.otherInformation }</textarea>
            </td>
            <td><font color="red"></font></td>
            <td id="otherInformationCol">
              <span id="otherInformationDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">内容状态:</td>
            <td>
              <select name="status">
                <option value="1" <c:if test="${trustProductDetail.status eq 1 }">selected</c:if>>发布</option>
                <option value="0" <c:if test="${trustProductDetail.status eq 0 }">selected</c:if>>草稿</option>
              </select>
            </td>
            <td><font color="red">*</font></td>
            <td></td>
          </tr>
          
          <tr height="15px"><td></td><td></td><td></td></tr>
          <tr>
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td>
              <input type="button" value="保存" onclick="addTrustProductFun()" />
            </td>
            <td></td>
          </tr>
        </table>
        </form>
      </div>
      
    </div>
  </div>
</body>
</html>